gtk-inspector: size-groups.c: Fix build on pre-C99
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 16 Jul 2014 09:58:20 +0000 (17:58 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 16 Jul 2014 09:58:20 +0000 (17:58 +0800)
Declare variables at the top of the block.

gtk/inspector/size-groups.c

index 8cec9378353649bda7a7b0667353ddd237f7a506..422007c5db14ca5106a535a47781b1a363ffa87c 100644 (file)
@@ -270,6 +270,8 @@ void
 gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
                                       GObject                *object)
 {
+  GSList *groups, *l;
+
   clear_view (sl);
 
   if (!GTK_IS_WIDGET (object))
@@ -278,8 +280,6 @@ gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
       return;
     }
 
-  GSList *groups, *l;
-
   gtk_widget_show (GTK_WIDGET (sl));
   groups = _gtk_widget_get_sizegroups (GTK_WIDGET (object));
   for (l = groups; l; l = l->next)